﻿# -*- coding: utf-8 -*-
#格式化字符串前位补零(000123) nulen 总位数 number数字

def printf(nulen,number):
    t1=nulen
    strnu=''
    for i in range(1,nulen+1):
        an=10**(t1-i)
        if not number/an == 0:
            strnu='%s%s' %(strnu,number)
            return strnu
        else:
            strnu='%s%s' %('0',strnu)

        
